home *** CD-ROM | disk | FTP | other *** search
/ Beginning Mac Programming / Beginning Mac Programming.bin / Open Me for REALbasic 3 / REALbasic 3.2 / Example Projects / Applications / MaskPicture 1.0 / ReadMe.txt
Text File  |  1999-04-09  |  2KB  |  45 lines

  1. MaskPicture example including cPictureCanvas with compositing functionality
  2. ----------------------------------------------------------------------
  3. Version 1.0    04/09/1999
  4. three-2-one interaktive Medien GmbH
  5. Author: Jörg Pressel, joergp@three-2-one.com
  6.  
  7.  
  8. MaskPicture is an example how to composite one picture with an alpha-channel (=transparency) picture onto another picture.
  9. Try possible effects with included sample picts or use your own pictures.
  10.  
  11.  
  12. Class cPictureCanvas   (well, not the first one with this name, I guess)
  13. is the heart of this little app and does all the necessary stuff:
  14.  
  15. call EnableDrops to make the canvas accept a picture or picture-file dropped on it.
  16. call ChoosePicture to show a standard file dialog and open a picture
  17. call CalcCompPicture(back as picture, fill as picture, mask as picture) to substitute the current picture with the composition of "fill" with alpha "mask" onto "back".
  18.  
  19. Additional features:
  20. - you can drag the pictures from the canvas
  21. - standard macintosh bevels to show the margins of the canvas
  22.  
  23.  
  24.  
  25.  
  26. This is example is freeware. You can use it and customize it the
  27. way you want. Please include my original copyrights in any improved
  28. version and send me a copy.
  29. Any comments appreciated!
  30.  
  31.  
  32. Contact:
  33. three-2-one interaktive Medien GmbH
  34. Südwall 22
  35. 47798 Krefeld
  36. Germany
  37. Fon 0(49)2151 319450
  38. Fax 0(49)2151 3194509
  39. info@three-2-one.com
  40. www.three-2-one.com
  41.  
  42. three-2-one interaktive Medien GmbH is a multimedia company located in germany,
  43. lower rhine area near Düsseldorf.
  44. Our core business is conception, graphic-design and programming of Internet-Sites
  45. and CD-Roms.